    <div class="col-md-12 col-sm-12 col-xs-12">
        <?php $form = $this->beginWidget('CActiveForm', array(
                'id'            => 'category-form',
                'enableClientValidation' => true,
                'enableAjaxValidation'   => true,
                'clientOptions' => array(
                    'validateOnSubmit' => true,
                ),
            )
        ); ?>
        <div class="form-group clearfix">
            <?php echo $form->labelEx($model, 'category_name', array('class' => 'col-md-3 col-sm-3 control-label')); ?>
            <div class="col-md-6 col-sm-6">
                <?php echo $form->textField($model, 'category_name', array('class' => 'form-control')); ?>
            </div>
            <?php echo $form->error($model, 'category_name'); ?>
        </div>
        <div class="form-group clearfix">
            <?php echo $form->labelEx($model, 'category_parent', array('class' => 'col-md-3 col-sm-3 control-label')); ?>
            <div class="col-md-6 col-sm-6">
                <?php echo $form->dropDownList($model, 'category_parent', CHtml::listData(Category::model()->findAll(), 'id', 'category_name'), array('empty' => '(Select a Category)')); ?>
            </div>
            <?php echo $form->error($model, 'category_parent'); ?>
        </div>
        <div class="col-sm-6 col-sm-offset-3">
            <div class="pull-right">
                <?php echo CHtml::submitButton($model->isNewRecord ? 'Tạo mới' : 'Sửa', array('class' => 'btn btn-primary m-b-10')); ?>
                <?php echo CHtml::resetButton('Nhập lại', array('class' => 'btn btn-default m-b-10')); ?>
            </div>
        </div>
        <?php $this->endWidget(); ?>
    </div>